package com.zdsoft.crm.dao.auth;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;

import com.zdsoft.crm.entity.auth.SysRoleFunc;


public interface ISysRoleFuncMapper {

	@Insert("insert into sys_role_func(id,role_id,func_id) values(#{id},#{role_id,jdbcType=VARCHAR},#{func_id,jdbcType=VARCHAR})")
	void save(SysRoleFunc roleFunc);
	
	@Delete("delete from sys_role_func where id=#{id}")
	void delete(SysRoleFunc roleFunc);
	
	@Delete("delete from sys_role_func where role_id=#{role_id,jdbcType=VARCHAR}")
	void deleteByRoleId(String role_id);
	
}
